package cn.edu.nwafu.hjpg.dao;

import cn.edu.nwafu.hjpg.entity.Element;
import cn.edu.nwafu.hjpg.entity.Lhsxb;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface LhsxbDao extends MongoRepository<Lhsxb,String> {
    List<Lhsxb> findElementByBaseinfoWzbmAndAttributeAndFlag(String baseinfoWzbm,String attribute,String flag);
    Page<Lhsxb> findAllByflag(String flag, Pageable pageable);
    List<Lhsxb> findAllByBaseinfoWzbmAndFlag(String id,String flag);
    Page<?> findAllByflagAndAttribute(String id, String attribute, int flag, Pageable pageable);
    List<Lhsxb> findAll();
}
